package com.itheima.exception;

import com.itheima.result.ErrorResult;
import lombok.Data;


@Data
public class BusinessException extends RuntimeException{
    private ErrorResult errorResult;
    public BusinessException(ErrorResult errorResult) {
        super(errorResult.getErrorMessage());
        this.errorResult = errorResult;
    }

}
